﻿.cards{
    background-color: #f5f5f5;
    padding: 50px 150px 100px 150px;
}

.card-bg {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    padding: 35px 50px 10px 50px;
    width: 100%;
    margin: auto; 
}

.card-img {
    padding-top: 8px;
    width: 25%;
}

.card-img img {
    display: block;
    margin: auto;
}

.card-title {
    color: #00bf44;
    margin-right: 45px;
    font-size: 1.31rem;
    font-family: "Mohr-Bold";
}

.card-text div{
    font-family: "Mohr-Medium";
    color: #707070;
    line-height: 1.5;
    font-size: 0.9rem;
}

.divider {
    background-color:lightgray;
    height: 0.5px;
    margin: 10px auto;
    width: 60%;
}

.btn-toggle {
    color: #021f59;
    cursor: pointer;
    font-size: 11px;
    font-family: "Mohr-Mediumlt";
    font-weight: bold;
    justify-content: center;
    display: flex;
    align-items: center;
    padding-top: 5px;
    width: 100%;
}

.btn-toggle:hover {
    color: #021f59;
}

.btn-toggle img {
    margin-left: 5px;
}

.rotate-arrow {
    transform: rotate(180deg);
}

/* cards */

.card-text > .partial {
    height: 40px; /* limita a altura aqui, assim irá limitar o texto*/
    overflow: hidden;
}

.card-text > a::before {
    content: ""; /*Texto de quando o texto estiver visivel*/
}

.card-text p::before {
    /* content: "..."; */
    right: calc(100% - 82.5%);
    position: absolute;
    padding-top: 1.3rem;
}

/* Botão Toggle (ver mais) ou (ver menos) */

.btn-toggle::before {
    content: "Ver Menos"; /*Texto de quando o texto estiver visivel*/
}

.btn-toggle.see-more::before {
    content: "Ver Mais"; /* texto para o link*/
}


/* Medias */
@media(min-width: 1920px) {
    .card-bg {
        padding: 35px 64px 30px 64px;
        width: 70%;
        margin: 0 auto;
    }
    .divider {
        width: 50%;
    }
}

@media(max-width: 768px) {

    .cards {
        padding: 50px 80px;
    }

    .card-bg {
        padding: 25px;
        margin: 0;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-img {
        width: 53%;
    }    

}
@media screen and (min-width: 768px) and (max-width:820px) {
    .cards {
        padding: 50px 15px 100px 15px;
    }
    .card-img {
        width: 30%;
    }
}

@media screen and (max-width:640px) {
      .card-text div {
        line-height: 1.5;
        font-size: 0.6rem;
        max-width: 200px;
    }
    .cards > .card-bg > .d-flex{
		flex-wrap: wrap;
		justify-content: center;
	}
	.card-img{
		margin-bottom: 20px;
	}
}

@media(max-width: 425px) {

    .cards {
        padding: 30px;
    }

    .card-bg {
        padding: 15px ​20px;
    }

    .card-img {
        width: 40%;
    }

    .card-img img {
        max-width: 95px;
        top: calc(50% - 17.5px );
        position: relative;
    }
    
    .card-title {
        font-size: .7rem;
    }

    .card-text {
        font-size: .57rem;
    }

    .btn-toggle {
        font-size: .7rem;
    }

}

@media screen and (max-width:320px){
    .card-bg {
        padding: 15px;
    }

    .card-img {
        width: 50%;
    }
    
    .card-title {
        font-size: .7rem;
        margin: 0;
    }  
}